@import "base.less";
@basefont: 4.3vw;

header {
  position: fixed;
  top: 0;
  left: 0;
  background-color: #fff;
  z-index: 999;
  width: 100%;// display: flex; 需要父类盒子有明确宽度
  .head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 50.51 / @basefont ;
    padding: 0 (13.77 / @basefont) 0 (20.66 / @basefont);
    .left{
      flex: 1;
    }
    .logo {
      i {
        font-size: 30 / @basefont;
        color: #ff5588;
      }
    }

    .right {
      display: flex;
      flex:1;
    }

    .search {
      width: 24 / @basefont;
      margin-right: 20 / @basefont;
    }

    .profile {
      margin-right: 20 / @basefont;

      img {
        width: 24 / @basefont;
        height: 24 / @basefont;
        border-radius: 50%;
      }
    }

    .download_app {
      img {
        height: 27.55 / @basefont;
      }
    }
  }
}

.nav {
  position: relative;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #eee;
  line-height: 45.91 / @basefont;

  .nav_list {
    position: relative;
    display: flex;
    height: 45.91 / @basefont;
    line-height: 45.91 / @basefont;
    white-space: nowrap;
    overflow: hidden;
    font-size: 3.733vw;
    flex: 1;

    a {
      padding: 0 18.367 / @basefont;
    }

  }

  .nav_line {
    position: absolute;
    left: 16 / @basefont;
    bottom: -2 / @basefont;
    width: 40 / @basefont;
    border-bottom: 2px solid #ff5588;
  }

  .triangles {
    position: relative;
    width: 37.5 / @basefont;
    font-size: 14 / @basefont;

    i {
      position: absolute;
      left: 50%;
      top: 50%;
      transform: translate(-50%, -50%);
    }
  }
}

.content {
  z-index: -99;
  padding: 0 3 / @basefont;
  display: flex;
  flex-wrap: wrap;

  .items {
    padding: 9.18 / @basefont 5.74 / @basefont;
    width: 50%;
    padding-right: 0 5 / @basefont;

    .card {
      position: relative;

      .count {
        position: absolute;
        left: 0;
        bottom: 0;
        display: flex;
        justify-content: space-between;
        width: 100%;
        padding: 5.74 / @basefont 6.88 / @basefont;
        font-size: 13.7 / @basefont;
        color: #fff;
        background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(0, 0, 0.3));
      }
    }

    p {
      margin-top: 6.88 / @basefont;
      font-size: 12 / @basefont;
      overflow: hidden;
      /* 隐藏超出范围的内容 */
      text-overflow: ellipsis;
      /* 使用省略号 */
      display: -webkit-box;
      /* 设置为WebKit内核的弹性盒子模型 */
      -webkit-box-orient: vertical;
      /* 垂直排列 */
      -webkit-line-clamp: 2;
      /* 限制显示两行 */
    }

  }
}

footer {
  position: fixed;
  bottom: 30 / @basefont;
  width: 100%;
  text-align: center;

 

  .download {
    margin: 0 30 / @basefont;
    height: 30 / @basefont;
    font-size: 14 / @basefont;
    line-height: 30 / @basefont;
    border-radius: 30 / @basefont;
    background-color: #ff5588;
    color: #fff;
  }
}